package com.his.his_system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 支付收费记录
 * @TableName dzm_his_care_paylog
 */
@TableName(value ="dzm_his_care_paylog")
public class DzmHisCarePaylog implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Object id;

    /**
     * care_pkg.id
     */
    private Object pkgId;

    /**
     * 支付平台交易单号
     */
    private String platformCode;

    /**
     * 支付方式：0现金，1微信，2支付宝，3，4，5....
     */
    private Integer paymentPlatform;

    /**
     * 支付金额
     */
    private BigDecimal payAmount;

    /**
     * 状态，0未支付，1已支付
     */
    private Integer status;

    /**
     * 添加时间
     */
    private Object addtime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Object getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Object id) {
        this.id = id;
    }

    /**
     * care_pkg.id
     */
    public Object getPkgId() {
        return pkgId;
    }

    /**
     * care_pkg.id
     */
    public void setPkgId(Object pkgId) {
        this.pkgId = pkgId;
    }

    /**
     * 支付平台交易单号
     */
    public String getPlatformCode() {
        return platformCode;
    }

    /**
     * 支付平台交易单号
     */
    public void setPlatformCode(String platformCode) {
        this.platformCode = platformCode;
    }

    /**
     * 支付方式：0现金，1微信，2支付宝，3，4，5....
     */
    public Integer getPaymentPlatform() {
        return paymentPlatform;
    }

    /**
     * 支付方式：0现金，1微信，2支付宝，3，4，5....
     */
    public void setPaymentPlatform(Integer paymentPlatform) {
        this.paymentPlatform = paymentPlatform;
    }

    /**
     * 支付金额
     */
    public BigDecimal getPayAmount() {
        return payAmount;
    }

    /**
     * 支付金额
     */
    public void setPayAmount(BigDecimal payAmount) {
        this.payAmount = payAmount;
    }

    /**
     * 状态，0未支付，1已支付
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 状态，0未支付，1已支付
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 添加时间
     */
    public Object getAddtime() {
        return addtime;
    }

    /**
     * 添加时间
     */
    public void setAddtime(Object addtime) {
        this.addtime = addtime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DzmHisCarePaylog other = (DzmHisCarePaylog) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getPkgId() == null ? other.getPkgId() == null : this.getPkgId().equals(other.getPkgId()))
            && (this.getPlatformCode() == null ? other.getPlatformCode() == null : this.getPlatformCode().equals(other.getPlatformCode()))
            && (this.getPaymentPlatform() == null ? other.getPaymentPlatform() == null : this.getPaymentPlatform().equals(other.getPaymentPlatform()))
            && (this.getPayAmount() == null ? other.getPayAmount() == null : this.getPayAmount().equals(other.getPayAmount()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getAddtime() == null ? other.getAddtime() == null : this.getAddtime().equals(other.getAddtime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getPkgId() == null) ? 0 : getPkgId().hashCode());
        result = prime * result + ((getPlatformCode() == null) ? 0 : getPlatformCode().hashCode());
        result = prime * result + ((getPaymentPlatform() == null) ? 0 : getPaymentPlatform().hashCode());
        result = prime * result + ((getPayAmount() == null) ? 0 : getPayAmount().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getAddtime() == null) ? 0 : getAddtime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", pkgId=").append(pkgId);
        sb.append(", platformCode=").append(platformCode);
        sb.append(", paymentPlatform=").append(paymentPlatform);
        sb.append(", payAmount=").append(payAmount);
        sb.append(", status=").append(status);
        sb.append(", addtime=").append(addtime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}